import React, { Component } from "react";

export default class App extends Component {
  state = {
    todoList: [],
  };
  render() {
    return (
      <div>
        {
          //如果代办事项列表长度为零,则输出 "您当前暂无代办事项"
          this.state.todoList.length === 0 && <p>您当前暂无代办事项</p>
        }
      </div>
    );
  }
}
